﻿package Message.Game
{
    import Engine.RMI.*;
    import Framework.Serialize.*;
    import Message.Public.*;

    public class IMarketPrxHelper extends RMIProxyObject implements IMarketPrx
    {
        public static const NAME:String = "Message.Game.IMarket";

        public function IMarketPrxHelper()
        {
            name = "IMarket";
            return;
        }// end function

        public function broadcastMarketRecord_async(param1:AMI_IMarket_broadcastMarketRecord, param2:Number) : void
        {
            var _loc_3:* = makeContext(session);
            var _loc_4:* = makeCall("broadcastMarketRecord");
            var _loc_5:* = new SerializeStream();
            _loc_5.writeLong(param2);
            Outgoing.invokeAsync(_loc_3, _loc_4, _loc_5, param1);
            return;
        }// end function

        public function buyMarketItem_async(param1:AMI_IMarket_buyMarketItem, param2:Number) : void
        {
            var _loc_3:* = makeContext(session);
            var _loc_4:* = makeCall("buyMarketItem");
            var _loc_5:* = new SerializeStream();
            _loc_5.writeLong(param2);
            Outgoing.invokeAsync(_loc_3, _loc_4, _loc_5, param1);
            return;
        }// end function

        public function cancelSeekBuy_async(param1:AMI_IMarket_cancelSeekBuy, param2:Number) : void
        {
            var _loc_3:* = makeContext(session);
            var _loc_4:* = makeCall("cancelSeekBuy");
            var _loc_5:* = new SerializeStream();
            _loc_5.writeLong(param2);
            Outgoing.invokeAsync(_loc_3, _loc_4, _loc_5, param1);
            return;
        }// end function

        public function cancelSell_async(param1:AMI_IMarket_cancelSell, param2:Number) : void
        {
            var _loc_3:* = makeContext(session);
            var _loc_4:* = makeCall("cancelSell");
            var _loc_5:* = new SerializeStream();
            _loc_5.writeLong(param2);
            Outgoing.invokeAsync(_loc_3, _loc_4, _loc_5, param1);
            return;
        }// end function

        public function getMarketRecordById_async(param1:AMI_IMarket_getMarketRecordById, param2:Number) : void
        {
            var _loc_3:* = makeContext(session);
            var _loc_4:* = makeCall("getMarketRecordById");
            var _loc_5:* = new SerializeStream();
            _loc_5.writeLong(param2);
            Outgoing.invokeAsync(_loc_3, _loc_4, _loc_5, param1);
            return;
        }// end function

        public function getMyRecords_async(param1:AMI_IMarket_getMyRecords, param2:int) : void
        {
            var _loc_3:* = makeContext(session);
            var _loc_4:* = makeCall("getMyRecords");
            var _loc_5:* = new SerializeStream();
            _loc_5.writeInt(param2);
            Outgoing.invokeAsync(_loc_3, _loc_4, _loc_5, param1);
            return;
        }// end function

        public function search_async(param1:AMI_IMarket_search, param2:int, param3:int, param4:Array, param5:int, param6:int, param7:int, param8:int, param9:int, param10:int, param11:String) : void
        {
            var _loc_12:* = makeContext(session);
            var _loc_13:* = makeCall("search");
            var _loc_14:* = new SerializeStream();
            _loc_14.writeInt(param2);
            _loc_14.writeInt(param3);
            SeqIntHelper.write(_loc_14, param4);
            _loc_14.writeInt(param5);
            _loc_14.writeInt(param6);
            _loc_14.writeInt(param7);
            _loc_14.writeInt(param8);
            _loc_14.writeInt(param9);
            _loc_14.writeInt(param10);
            _loc_14.writeString(param11);
            Outgoing.invokeAsync(_loc_12, _loc_13, _loc_14, param1);
            return;
        }// end function

        public function seekBuy_async(param1:AMI_IMarket_seekBuy, param2:int, param3:int, param4:int, param5:int, param6:int, param7:Boolean) : void
        {
            var _loc_8:* = makeContext(session);
            var _loc_9:* = makeCall("seekBuy");
            var _loc_10:* = new SerializeStream();
            _loc_10.writeInt(param2);
            _loc_10.writeInt(param3);
            _loc_10.writeInt(param4);
            _loc_10.writeInt(param5);
            _loc_10.writeInt(param6);
            _loc_10.writeBool(param7);
            Outgoing.invokeAsync(_loc_8, _loc_9, _loc_10, param1);
            return;
        }// end function

        public function sellItem_async(param1:AMI_IMarket_sellItem, param2:int, param3:String, param4:int, param5:int, param6:int, param7:int, param8:Boolean) : void
        {
            var _loc_9:* = makeContext(session);
            var _loc_10:* = makeCall("sellItem");
            var _loc_11:* = new SerializeStream();
            _loc_11.writeInt(param2);
            _loc_11.writeString(param3);
            _loc_11.writeInt(param4);
            _loc_11.writeInt(param5);
            _loc_11.writeInt(param6);
            _loc_11.writeInt(param7);
            _loc_11.writeBool(param8);
            Outgoing.invokeAsync(_loc_9, _loc_10, _loc_11, param1);
            return;
        }// end function

        public function sellItem2SeekBuy_async(param1:AMI_IMarket_sellItem2SeekBuy, param2:Number, param3:String, param4:int) : void
        {
            var _loc_5:* = makeContext(session);
            var _loc_6:* = makeCall("sellItem2SeekBuy");
            var _loc_7:* = new SerializeStream();
            _loc_7.writeLong(param2);
            _loc_7.writeString(param3);
            _loc_7.writeInt(param4);
            Outgoing.invokeAsync(_loc_5, _loc_6, _loc_7, param1);
            return;
        }// end function

    }
}
